package com.icangya.domain;

import javax.persistence.*;
import java.sql.Timestamp;

@Entity
@Table(name = "fb_order")
public class FbOrder {  // 订单表

    private long id;//编号

    private  String orderId;// 订单号

    private  String openId;

    private  long uid;

    private String nickName;

    private String headImgUrl;

    private long userAwardId;//用户奖励记录编号

    private  long awardId;

    private String awardContent;

    private  String awardImgUrl;//产品图片

    private  int status;//发货状态

    private  int paymentStatus;

    private  String expressId;//快递单号

    private  String expressName;//快递公司

    private Timestamp createTime;//创建时间

    private long addressId;//地址id

    private  String address;//地址

    private String name;//收货人

    private String phone;//收货地址

    private  double orderMoney;

    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @Column(name = "id")
    public long getId() {
        return id;
    }

    public void setId(long id) {
        this.id = id;
    }

    @Basic
    @Column(name = "openId")
    public String getOpenId() {
        return openId;
    }

    public void setOpenId(String openId) {
        this.openId = openId;
    }

    @Basic
    @Column(name = "uid")
    public long getUid() {
        return uid;
    }

    public void setUid(long uid) {
        this.uid = uid;
    }

    @Basic
    @Column(name = "nick_name")
    public String getNickName() {
        return nickName;
    }

    public void setNickName(String nickName) {
        this.nickName = nickName;
    }

    @Basic
    @Column(name = "head_imgUrl")
    public String getHeadImgUrl() {
        return headImgUrl;
    }

    public void setHeadImgUrl(String headImgUrl) {
        this.headImgUrl = headImgUrl;
    }

    @Basic
    @Column(name = "user_awardId")
    public long getUserAwardId() {
        return userAwardId;
    }

    public void setUserAwardId(long userAwardId) {
        this.userAwardId = userAwardId;
    }

    @Basic
    @Column(name = "order_id")
    public String getOrderId() {
        return orderId;
    }

    public void setOrderId(String orderId) {
        this.orderId = orderId;
    }
    @Basic
    @Column(name = "award_id")
    public long getAwardId() {
        return awardId;
    }

    public void setAwardId(long awardId) {
        this.awardId = awardId;
    }
    @Basic
    @Column(name = "award_content")
    public String getAwardContent() {
        return awardContent;
    }

    public void setAwardContent(String awardContent) {
        this.awardContent = awardContent;
    }
    @Basic
    @Column(name = "award_imgUrl")
    public String getAwardImgUrl() {
        return awardImgUrl;
    }

    public void setAwardImgUrl(String awardImgUrl) {
        this.awardImgUrl = awardImgUrl;
    }
    @Basic
    @Column(name = "status")
    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }
    @Basic
    @Column(name = "payment_status")
    public int getPaymentStatus() {
        return paymentStatus;
    }

    public void setPaymentStatus(int paymentStatus) {
        this.paymentStatus = paymentStatus;
    }

    @Basic
    @Column(name = "express_id")
    public String getExpressId() {
        return expressId;
    }

    public void setExpressId(String expressId) {
        this.expressId = expressId;
    }
    @Basic
    @Column(name = "express_name")
    public String getExpressName() {
        return expressName;
    }

    public void setExpressName(String expressName) {
        this.expressName = expressName;
    }

    @Basic
    @Column(name = "create_time")
    public Timestamp getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Timestamp createTime) {
        this.createTime = createTime;
    }

    @Basic
    @Column(name = "address_id")
    public long getAddressId() {
        return addressId;
    }

    public void setAddressId(long addressId) {
        this.addressId = addressId;
    }
    @Basic
    @Column(name = "address")
    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    @Basic
    @Column(name = "name")
    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
    @Basic
    @Column(name = "phone")
    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    @Basic
    @Column(name = "order_money")
    public double getOrderMoney() {
        return orderMoney;
    }

    public void setOrderMoney(double orderMoney) {
        this.orderMoney = orderMoney;
    }

    public FbOrder() {
    }

    public FbOrder(String orderId, String openId, long uid, String nickName, String headImgUrl, long userAwardId, long awardId, String awardContent, String awardImgUrl, int status, int paymentStatus,
                   String expressId, String expressName, Timestamp createTime, long addressId, String address, String name, String phone, double orderMoney) {
        this.orderId = orderId;
        this.openId = openId;
        this.uid = uid;
        this.nickName = nickName;
        this.headImgUrl = headImgUrl;
        this.userAwardId = userAwardId;
        this.awardId = awardId;
        this.awardContent = awardContent;
        this.awardImgUrl = awardImgUrl;
        this.status = status;
        this.paymentStatus = paymentStatus;
        this.expressId = expressId;
        this.expressName = expressName;
        this.createTime = createTime;
        this.addressId = addressId;
        this.address = address;
        this.name = name;
        this.phone = phone;
        this.orderMoney = orderMoney;
    }
}
